package cn.stylefeng.guns.modular.hx.storage.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.hx.storage.entity.HxCollectionLocation;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxCollectionLocationParam;
import cn.stylefeng.guns.modular.hx.storage.model.result.HxCollectionLocationResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lww
 * @since 2024-01-02
 */
public interface HxCollectionLocationService extends IService<HxCollectionLocation> {

    /**
     * 新增
     *
     * @author lww
     * @Date 2024-01-02
     */
    void add(HxCollectionLocationParam param);

    /**
     * 删除
     *
     * @author lww
     * @Date 2024-01-02
     */
    void delete(HxCollectionLocationParam param);

    /**
     * 更新
     *
     * @author lww
     * @Date 2024-01-02
     */
    void update(HxCollectionLocationParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author lww
     * @Date 2024-01-02
     */
    HxCollectionLocationResult findBySpec(HxCollectionLocationParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author lww
     * @Date 2024-01-02
     */
    List<HxCollectionLocationResult> findListBySpec(HxCollectionLocationParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author lww
     * @Date 2024-01-02
     */
     LayuiPageInfo findPageBySpec(HxCollectionLocationParam param, String condition);

    List<HxCollectionLocationResult> findLocation(HxCollectionLocationParam hxCollectionLocationParam);

    List<HxCollectionLocationResult> getStockPortByUnit(HxCollectionLocationParam hxCollectionLocationParam);

    void deliveryTray(HxCollectionLocationParam hxCollectionLocationParam);

    void clear(HxCollectionLocationParam hxCollectionLocationParam);

    List<HxCollectionLocationResult> find(HxCollectionLocationParam hxCollectionLocationParam, String condition);
}
